package com.jk.vehicle.mini.service;

import com.jk.vehicle.mini.entity.UserBicycleLink;
import com.jk.vehicle.core.service.Service;
import com.jk.vehicle.mini.vo.UserBicycleLinkVO;

import java.util.List;
import java.util.Map;

/**
 * This is Description for UserBicycleLinkService
 *
 * @author Administrator
 * @date 2021/02/08
 */
public interface UserBicycleLinkService extends Service<UserBicycleLink> {
    /**
    * 根据查询条件查询单表数据
    * @param paramMap 查询条件
    * @return 查询结果
    */
    List<UserBicycleLink> queryByParams(Map<String, Object> paramMap);

    /**
     * 查询车辆分享关联信息
     * @param bicycleId 车辆ID
     * @return 结果
     */
    List<UserBicycleLinkVO> queryShareLinkData(Long bicycleId, String dsName);

    /**
     * 根据用户id查询用户车辆关联列表
     * @param userId
     * @return
     */
    List<UserBicycleLink> queryUserBicycleLinkCommonCorpById(Long userId);

    /**
     * 根据用户id分组查询用户车辆关联列表
     */
    List<UserBicycleLink> queryUserBicycleLinkCorpById(Long userId);

}
